<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="https://cdn.bootcss.com/bootstrap/3.0.1/css/bootstrap.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/bootstrap/3.0.1/js/bootstrap.js"></script>

  </head>
  
  <body style="background-image: url('img/timg.jpg');">
 <div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<!-- 头部导航 -->
			<nav class="navbar navbar-default navbar-inverse navbar-fixed-top"
					role="navigation">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span><span
							class="icon-bar"></span><span class="icon-bar"></span><span
							class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">首页</a>
				</div>

				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li><a href="#">求购物品</a></li>
						<li><a href="#">出售闲置</a></li>
							<ul class="dropdown-menu">
								<li><a href="#">Action</a></li>
								<li><a href="#">Another action</a></li>
								<li><a href="#">Something else here</a></li>
								<li class="divider"></li>
								<li><a href="#">Separated link</a></li>
								<li class="divider"></li>
								<li><a href="#">One more separated link</a></li>
							</ul></li>
					</ul>
					<form class="navbar-form navbar-left" role="search">
						<div class="form-group">
							<input type="text" class="form-control" />
						</div>
						<button type="submit" class="btn btn-default">查找</button>
					</form>
					<ul class="nav navbar-nav navbar-right">
						<li><a href="login.jsp">登录</a></li>
						<li class="dropdown"><a href="#" class="dropdown-toggle"
							data-toggle="dropdown">注册</a>
							<ul class="dropdown-menu">
								<li><a href="#">Action</a></li>
								<li><a href="#">Another action</a></li>
								<li><a href="#">Something else here</a></li>
								<li class="divider"></li>
								<li><a href="#">Separated link</a></li>
							</ul></li>
					</ul>
				</div>

				</nav>
				<!-- 头部导航 -->
		</div>
	</div>
</div>
  <div class="container">
	<div class="row clearfix" style="margin: 90px auto;width: 700px;padding: 00px 0px 100px 50px;">
		<div class="col-md-12 column">
			<form class="form-horizontal" role="form" action="Login" method="post">
				<div class="form-group">
					 <label for="inputEmail3" style="color: #FFF;font-size: 23px"  class="col-sm-2 control-label">账号:</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="userName" name="userName"/>
					</div>
				</div>
				<div class="form-group">
					 <label for="inputPassword3" style="color: #FFF;font-size: 23px" class="col-sm-2 control-label">密码:</label>
					<div class="col-sm-10">
						<input type="password" class="form-control" id="pwd" name="pwd" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						&nbsp;&nbsp;&nbsp;<input type="submit" style="width: 240px;"   class="btn btn-default" value="登录">
						<input type="button" class="btn btn-default" onclick="javascript:window.location.href='adduser.jsp'"value="注册" style="width: 240px;" />
					</div>
				</div>
			</form>
			<div align="center">
					<span style="color: #FFF;font-size: 23px;" >
					<c:if test="${!empty error}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${error}</c:if>
					<c:remove var="error"/>
					</span></div>
		</div>
	</div>
</div>
  </body>
</html>
